package com.tianyadu.security.core.validate.code.service;

import com.tianyadu.security.core.validate.code.ValidateCode;
import org.springframework.web.context.request.ServletWebRequest;

/**
 * @FileName: ValidateCodeGenerator
 * @Description: 校验码生成器
 * @author: xueyj
 * @create: 2018-12-11 15:57
 */
public interface ValidateCodeGenerator {
    /**
     * 生成校验码
     * @param request
     * @return
     */
    ValidateCode generate(ServletWebRequest request);
}
